<?php
	$data = array();
	$db = new libraries_order;
	$id = $_GET['oid'];
	if(isset($_POST['ok'])){
		$data = array(
			"status" 	=> $_POST['status']
		);
		$db->update_status($data,$id);
		header("location:index.php?mod=order&act=list");
		exit();
	}
?>